package com.leps.nq.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leps.nq.sys.entity.SysMenu;
import com.leps.nq.sys.entity.SysRole;
import com.leps.nq.sys.vo.CreateRoleVo;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author hex
 * @since 2022-05-20
 */
public interface ISysRoleService extends IService<SysRole> {

    List<SysRole> selectRoles();

    SysRole selectById(Long roleId);

    List<SysMenu> selectMenusByRoleId(Long roleId);

    boolean createRole(CreateRoleVo createRoleVo);

    boolean grantMenusToRole(Long roleId, Long[] menuIds);

    boolean updateRole(SysRole sysRole);

    boolean changeStatus(Long roleId, String status);

    boolean removeRole(Long[] roleIds);
}
